package top.fkxuexi.smartwork.MetaEntity;

import lombok.ToString;

import java.util.List;


public class TableMeta {

    // 数据库表名，数据库的命名风格
    private String dbName;
    // 数据库表明的Java的命名的风格
    private String javaDbName;
    // 数据库的注释
    private String comment;
    // 普通键的列表
    private List<ColMeta> colMetaList;
    // 外键列表
    private List<ForeignCelMeta> foreignCelMetaList;

    // 在实体中需要引入的类，例如日期类
    private List<String> importList;
    private int keySize;


    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getJavaDbName() {
        return javaDbName;
    }

    public void setJavaDbName(String javaDbName) {
        this.javaDbName = javaDbName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<ColMeta> getColMetaList() {
        return colMetaList;
    }

    public void setColMetaList(List<ColMeta> colMetaList) {
        this.colMetaList = colMetaList;
    }

    public List<ForeignCelMeta> getForeignCelMetaList() {
        return foreignCelMetaList;
    }

    public void setForeignCelMetaList(List<ForeignCelMeta> foreignCelMetaList) {
        this.foreignCelMetaList = foreignCelMetaList;
    }

    public List<String> getImportList() {
        return importList;
    }

    public void setImportList(List<String> importList) {
        this.importList = importList;
    }

    public int getKeySize() {
        return keySize;
    }

    public void setKeySize(int keySize) {
        this.keySize = keySize;
    }

    @Override
    public String toString() {
        return "TableMeta{" +
                "dbName='" + dbName + '\'' +
                ", javaDbName='" + javaDbName + '\'' +
                ", comment='" + comment + '\'' +
                ", colMetaList=" + colMetaList +
                ", foreignCelMetaList=" + foreignCelMetaList +
                ", importList=" + importList +
                ", keySize=" + keySize +
                '}';
    }
}

